<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'jizhang.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">    
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type='text/javascript' src='resource/js/jquery-1.9.1.min.js'></script>
</head>
  
<body>
	<input type="button" value="＜＜返回" style="cursor: pointer;" onclick="window.history.back(-1);">
	<table border="1" cellspacing="0" cellpadding="0">
		<tr>
			<th>流水编号</th>
			<th>账户名称</th>
			<th>金融账户名称</th>
			<th>账单描述</th>
			<th>交易类型</th>
			<th>冲正编号</th>
			<th>交易金额</th>
			<th>金融账户余额</th>
			<th>账户余额</th>
			<th>交易时间</th>
		</tr>
		
		<c:forEach items="${objs }" var="obj">
	  	<tr>
	  		<td align="center">${obj.id }</td>
	  		<td align="center">${obj.accName }</td>
	  		<td align="center">${obj.carrierName }</td>
	  		<td align="center">${obj.trade_desp }</td>
	  		<td align="center">${obj.trade_typeVal }</td>
	  		<td align="center">
		  		<c:choose>
					<c:when test="${empty obj.correct_trade}">--</c:when>
					<c:when test="${obj.correct_trade == 0}">--</c:when>
					<c:otherwise>${obj.correct_trade }</c:otherwise>
				</c:choose>
	  		</td>
	  		<td align="center">${obj.amount }</td>
	  		<td align="center">${obj.carrierAvailableBalance }</td>
	  		<td align="center">${obj.accountAvailableBalance }</td>
	  		<td align="center"><fmt:formatDate value="${obj.addTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
	  	</tr>
	  	</c:forEach>
	</table>
</body>
</html>
